//分期付款的计算
#include <stdio.h>
#include <math.h> 
int main (void)
{int d=324500,p=3245;	
double r=0.008,m;	
m=(log10(p)-log10(p-d*r))/log10(1+r); 
printf("month=%f\n",m); 
printf("total=%f\n",m*p); 
return 0;
}
